<include file="public:header"/>

<form id="form1" name="form1" method="post" action="{:U('member_delete')}">
    <div class="list_th">

        <div class="td" style=" width:25%;">姓名</div>
        <div class="td" style=" width:15%;">手机号</div>
        <div class="td" style=" width:10%;">金额</div>
        <div class="td center" style=" width:15%;">时间</div>
        <div class="td center" style=" width:10%;">提现状态</div>
        <div class="td" style=" width:20%;">操作</div>
        <div class="clear"></div>
    </div>

    <volist name="list" id="vo">
        <div class="list_tr link_black">
            <div class="td" style=" width:25%;">
                <div class="left_padding striking">
                    <span>{$vo['username']|default="未填写"}</span>
                </div>
            </div>
            <div class="td" style=" width:15%;">
                <span>{$vo['mobile']|default="未填写"}</span>
            </div>
            <div class="td" style=" width:10%;">
                <span>{$vo['all_money']|default="未填写"}</span>
            </div>

            <div class="td" style=" width: 15%;">

                <span> {$order['add_time']|date="Y-m-d H:i:s",###}</span>

            </div>

            <div class="td center" style=" width:10%;">
                <if condition="$vo['status'] eq 0">
                   待审核<elseif condition="$vo['status'] eq 1" />审核通过
                    <else/>
                    已拒绝
                </if>

                <if condition="$vo['reason']">
                    ({$vo['reason']})
                </if>
            </div>
            <div class="td edit" style=" width:20%;">
                <if condition="$vo['status'] eq 0">
                    <a href="javascript:void(0);" class="J_message_pass" parameter="id={$vo['id']}&status=1" hideFocus="true">通过</a>
                    <a href="javascript:void(0);" class="J_message_refu" parameter="id={$vo['id']}&status=2">拒绝</a>
                </if>
<!--                <if condition="$apply['Analyze']">-->
<!--                <a href="{:U('Analyze/Admin/analyze_list_per',array('uid'=>$vo['uid'],'utype'=>2,'_k_v'=>$vo['id']))}">统计</a>-->
<!--                </if>-->
<!--                <a href="{:U('member_edit',array('uid'=>$vo['uid'],'_k_v'=>$vo['uid']))}">编辑</a>-->
<!--                <a href="javascript:;" class="J_message" parameter="uid={$vo['uid']}">发消息</a>-->
            </div>
            <div class="clear"></div>
        </div>
    </volist>
</form>

<empty name="list">
    <div class="list_empty">没有任何信息！</div>
</empty>

<div class="list_foot">
    <div class="btnbox">
<!--        <input type="button" class="admin_submit" id="ButAdd" value="添加会员" onclick="window.location.href='{:U('member_add')}'"/>-->
<!--        <input type="button" class="admin_submit" id="ButDel" value="删除会员"/>-->
    </div>

    <div class="footso">
        <form action="?" method="get">
            <div class="sobox">
                <input type="hidden" name="m" value="{:C('admin_alias')}">
                <input type="hidden" name="c" value="{:CONTROLLER_NAME}">
                <input type="hidden" name="a" value="{:ACTION_NAME}">
                <input name="key" type="text" class="sinput" value="{$Think.get.key}"/>
                <input name="key_type" id="J_key_type_id" type="hidden" value="{$Think.get.key_type|default='1'}" />
                <input name="key_type_cn" id="J_key_type_cn" type="hidden" value="{$Think.get.key_type_cn|default='用户名'}"/>
                <input name="" type="submit" value="" class="sobtn"/>
                <div class="sotype" id="J_key_click">{$Think.get.key_type_cn|default='用户名'}</div>
                <div class="mlist" id="J_mlist">
                    <ul>
                        <li id="1" title="用户名">用户名</li>
<!--                        <li id="2" title="UID">UID</li>-->
<!--                        <li id="3" title="email">email</li>-->
                        <li id="4" title="手机号">手机号</li>
                    </ul>
                </div>
            </div>
        </form>
    </div>
</div>
<div class="pages">{$page}</div>

</div>
<include file="public:footer"/>

</body>
<script type="text/javascript">
    $(document).ready(function () {
        //登录日志
        $(".login_log").click(function () {
            var qsDialog = $(this).dialog({
                title: '登录日志',
                loading: true,
                footer : false
            });
            var param = $(this).attr('parameter');
            var url = "{:U('Ajax/login_log')}&" + param;
            $.getJSON(url, function (result) {
                qsDialog.setContent(result.data);
            });
        });
        //会员日志
        $(".login_log").click(function () {
            var qsDialog = $(this).dialog({
                title: '登陆日志',
                loading: true,
                footer : false
            });
            var param = $(this).attr('parameter');
            var url = "{:U('Ajax/login_log')}&" + param;
            $.getJSON(url, function (result) {
                qsDialog.setContent(result.data);
            });
        });
         //会员日志
        $(".personal_log").click(function () {
            var qsDialog = $(this).dialog({
                title: '会员日志',
                loading: true,
                footer : false
            });
            var param = $(this).attr('parameter');
            var url = "{:U('Ajax/personal_log')}&" + param;
            $.getJSON(url, function (result) {
                qsDialog.setContent(result.data);
            });
        });
        //通过
        $(".J_message_pass").click(function () {
            $('.modal_backdrop').remove();
            $('.modal').remove();
            var qsDialog = $(this).dialog({
                title: '发消息',
                loading: true,
                footer : false
            });
            var param = $(this).attr('parameter');
            var url = "{:U('Guwen/edit_pass_status')}&" + param;
            $.getJSON(url, function (result) {
                qsDialog.setContent(result.data);
            });
        });
   //拒绝
        $(".J_message_refu").click(function () {
            $('.modal_backdrop').remove();
            $('.modal').remove();
            var qsDialog = $(this).dialog({
                title: '发消息',
                loading: true,
                footer : false
            });
            var param = $(this).attr('parameter');
            var url = "{:U('Guwen/edit_pass_status')}&" + param;
            $.getJSON(url, function (result) {
                qsDialog.setContent(result.data);
            });
        });

        //业务
        $(".business").click(function () {
            var qsDialog = $(this).dialog({
                title: '业务',
                loading: true,
                footer : false
            });
            var param = $(this).attr('parameter');
            var url = "{:U('Ajax/business')}&" + param;
            $.getJSON(url, function (result) {
                qsDialog.setContent(result.data);
            });
        });
        //批量删除
        $("#ButDel").click(function () {
            if (confirm('删除会员，该会员下简历、企业、职位信息将同步删除')) {
                $("form[name=form1]").attr("action", "{:U('member_delete')}");
                $("form[name=form1]").submit();
            }
        });
    });
</script>
</html>